<template>
  <el-row
    type="flex"
    align="middle"
    style="height: 40px;width:100%"
  ><el-col>{{ data.name }}</el-col>
    <el-col>
      <el-row
        type="flex"
        justify="end"
      ><span>{{ data.manager }}</span>
        <!-- 下拉菜单部分 在element中 -->
        <el-dropdown>
          <span
            class="el-dropdown-link"
          >操作<i class="el-icon-arrow-down el-icon--right"></i>
          </span>
          <el-dropdown-menu slot="dropdown">
            <slot></slot>
          </el-dropdown-menu>
        </el-dropdown>
      </el-row>
    </el-col>
  </el-row>
</template>
<script>
export default {
  name: 'TreeTool',
  component: {},
  props: {
    data: {
      type: Object,
      required: true
    }
  }
}
</script>
<style scoped>
.tree-card {
  padding: 30px 140px;
  font-size: 14px;
}
.el-dropdown-link {
  cursor: pointer;
  color: #409eff;
  margin-left: 10px;
}
</style>
